]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: remove old actions from _actionKeys in setButtons
authorMaxim Ermilov <zaspire@rambler.ru>
Sun, 30 Jan 2011 23:15:19 +0000 (02:15 +0300)
committerMaxim Ermilov <zaspire@rambler.ru>
Tue, 1 Feb 2011 20:41:28 +0000 (23:41 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=640781

js/ui/modalDialog.js

index fee62662a2963ce06d68de3286176abf88cc2320..45a1e3c38b36878799649a129c9dedf9bb83c4da 100644 (file)
@@ -84,6 +84,8 @@ ModalDialog.prototype = {
 
     setButtons: function(buttons) {
         this._buttonLayout.destroy_children();
+        this._actionKeys = {};
+
         let i = 0;
         for (let index in buttons) {
             let buttonInfo = buttons[index];